package edu.sctu.java.advanced.pattern.chain;

public class Client {
    public static void main(String[] args) {


        InterceptorChain chain = new InterceptorChain();
        chain.addInterceptor(new MyInterceptor());
        chain.addInterceptor(new OtherInterceptor());


        Context context = chain.execute(new Context("chen"));
        System.out.println(context.name);
    }
}
